package tani.bnn.com.mbilling.utility;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Utility {
    private Properties properties;
    private static Utility appUtility = null;
    
    static{
    	appUtility = new Utility();
    }
    private Utility() {}

    public static Utility getAppUtility(){
    	return appUtility;
    }

    public String getProperty(String property) {
    	if (properties == null) {
    		// Read properties file.
    		properties = new Properties();
    		try {
    			properties.load( new FileInputStream("app.config"));
    		} catch (IOException e) {}
    	}
    	if (properties != null)
    		return properties.getProperty(property);
    	return null;
    }
}